package com.stu.serive.impl;

import com.stu.mapper.LoginMapper;
import com.stu.pojo.Login;
import com.stu.Dto.StuLoginDto;
import com.stu.serive.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;

    @Override//根据用户名和密码查询
    public Login login(Login login){
        return loginMapper.getKey(login);
    }

    @Override
    public StuLoginDto stuLogin(StuLoginDto login) {
        return loginMapper.getStuKey(login);
    }

}
